Skip to content

Conversation

@jinge90
Copy link
Contributor

@jinge90 jinge90 commented Nov 6, 2025

The 'usesAssert' seems to be used by fallback assert mechanism which has beem discarded, create this PR to trigger pre-ci to see if any problem pops up if we remove the code snippet.

@jinge90 jinge90 requested a review from a team as a code owner November 6, 2025 04:57
@jinge90 jinge90 requested a review from slawekptak November 6, 2025 04:57
@jinge90 jinge90 marked this pull request as draft November 6, 2025 04:59
@jinge90
Copy link
Contributor Author

jinge90 commented Nov 10, 2025

Hi, @steffenlarsen
Could you take a look at this PR to see whether the 'usesAssert' metadata is used by fallback assert mechanism? If so, we can remove it.
If you are OK to remove it, I will proceed with this PR to get rid of 'usesAssert' in other components(program manager, sycl-post-link, device kernel info...)

Thanks very much.

@steffenlarsen
Copy link
Contributor

Hi, @steffenlarsen Could you take a look at this PR to see whether the 'usesAssert' metadata is used by fallback assert mechanism? If so, we can remove it. If you are OK to remove it, I will proceed with this PR to get rid of 'usesAssert' in other components(program manager, sycl-post-link, device kernel info...)

Thanks very much.

@jinge90 - Thank you for testing this out! I expect it to be fine. If everything goes green, please feel free to remove the metadata. 🚀

Signed-off-by: jinge90 <[email protected]>

template <typename MultimapT, typename KeyT, typename ValT>
void removeFromMultimapByVal(MultimapT &Map, const KeyT &Key, const ValT &Val,
bool AssertContains = true) {
Copy link
Contributor Author

@jinge90 jinge90 Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @sergey-semenov
We are working on removing all fallback assert related code in sycl-post-link and sycl runtime.
One thing to do is to clean up SYCL_ASSERT_USED meta data, I found you previous patch (https://github.com/intel/llvm/pull/19659/files#diff-78dd7f7ba0b6120dece1ae4ab5a09c9936ff654a1de2c31ff2dbb1fc58d90393R2123) added 'AssertContains' param in removeFromMultimapByVal function, could you help check whether we can remove it if we are going to remove assert metadata in sycl runtime? If "AssertContains" is only used for 'assert', we can remove it, otherwise I suggest to rename the param to somthing like "ExpSymbolContains".
Thanks very much.

Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
@steffenlarsen
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants